.class Lcom/nemustech/regina/WorkspaceBrowser$1;
.super Ljava/lang/Object;
.source "WorkspaceBrowser.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFHolder$OnObjectShiftListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/WorkspaceBrowser;->addWorkspaceThumb(ILcom/nemustech/regina/RGWorkspace;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/WorkspaceBrowser;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/WorkspaceBrowser;)V
    .locals 0
    .parameter

    .prologue
    .line 200
    iput-object p1, p0, Lcom/nemustech/regina/WorkspaceBrowser$1;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onObjectShift(I)V
    .locals 2
    .parameter "newItemIndex"

    .prologue
    .line 203
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$1;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$100(Lcom/nemustech/regina/WorkspaceBrowser;)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_1

    .line 204
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$1;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0, p1}, Lcom/nemustech/regina/WorkspaceBrowser;->access$102(Lcom/nemustech/regina/WorkspaceBrowser;I)I

    .line 214
    :cond_0
    :goto_0
    return-void

    .line 208
    :cond_1
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$1;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$100(Lcom/nemustech/regina/WorkspaceBrowser;)I

    move-result v0

    if-eq v0, p1, :cond_0

    .line 209
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$1;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0, p1}, Lcom/nemustech/regina/WorkspaceBrowser;->access$102(Lcom/nemustech/regina/WorkspaceBrowser;I)I

    .line 210
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$1;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$200(Lcom/nemustech/regina/WorkspaceBrowser;)I

    move-result v0

    const/4 v1, 0x3

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$1;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$300(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaPreference;->getWorkspaceVibration()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 212
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$1;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$300(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ReginaLauncher;->vibrateShort()V

    goto :goto_0
.end method
